#!/usr/bin/python

print 'Name: '
name = raw_input()
print 'Test description: ',
desc = raw_input()
def getFile(prompt):
  print prompt+': ',
  inp = []
  line = raw_input()
  while line != '':
    inp.append(line)
    print prompt+': ',
    line = raw_input()
  return '\n'.join(inp)

inp = getFile('Input (empty line = eof)')
out = getFile('Expected stdout')
err = getFile('Expected stderr')

def saveFile(content, name):
  f = file(name,'w')
  f.write(content)
  f.close()

saveFile(inp, 'in/'+name)
saveFile(desc, 'desc/'+name)
saveFile(out, 'out/'+name)
saveFile(err, 'err/'+name)




